package com.longrise.android.byjk.plugins.hra.hratabthird;

import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;

import com.longrise.LEAP.Base.Objects.EntityBean;
import com.longrise.android.byjk.R;
import com.longrise.android.byjk.plugins.hra.CustomViewPager;
import com.longrise.android.byjk.plugins.hra.hratabfirst.HraPlacesPagerAdapter;
import com.longrise.android.byjk.plugins.hra.hratabfirst.HraServiceDetailContract;
import com.longrise.android.byjk.plugins.hra.hratabfirst.HraServiceDetailPresenter;
import com.longrise.android.byjk.plugins.hra.hratabfirst.OrderPlaceParentBean;
import com.longrise.common.base.BaseActivity2;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/1/11.
 * 修改预约时间
 */

public class ChangeOrderTimeActivity extends BaseActivity2<HraServiceDetailPresenter> implements HraServiceDetailContract.View{

    private TabLayout mTb;
    private CustomViewPager mVp;
    private List<OrderPlaceParentBean> mParentBeanList = new ArrayList<>();
    private HraPlacesPagerAdapter pagerAdapter;

    @Override
    public int getContentViewId(@Nullable Bundle savedInstanceState) {
        return R.layout.activity_change_order_time;
    }

    @Override
    public void initView() {
        mTb = (TabLayout) findViewById(R.id.change_time_tablayout);
        mVp = (CustomViewPager) findViewById(R.id.change_time_viewpager);
        setToolbarTitle("修改预约时间");
        setToolbarRightTextTitleUnable("保存", Color.parseColor("#FFB3B3B3"));

    }


    @Override
    public void refreshStoreData(EntityBean bean) {

    }

    @Override
    public void refreshMachineData(EntityBean bean) {

    }

//    @Override
//    public void initAdapter(List<OrderPlaceParentBean> parentList) {
//        mParentBeanList.clear();
//        mParentBeanList.addAll(parentList);
//        pagerAdapter = new HraPlacesPagerAdapter(getSupportFragmentManager());
//        pagerAdapter.setData(parentList);
//        mVp.setAdapter(pagerAdapter);
//        mTb.setupWithViewPager(mVp);
//    }


    @Override
    public void onToolbarBackClick() {
        finish();
    }
}
